package com.accp.crm.service;

import java.util.List;

import org.hibernate.SessionFactory;

import com.accp.crm.dao.CommonDAO;
import com.accp.crm.entity.OrdersLine;

public class ContrRptService implements IContrRptService {
	private CommonDAO<OrdersLine> contrDAO;

	public void setSessionFactory(SessionFactory sessionFactory) {
		contrDAO = new CommonDAO<OrdersLine>(sessionFactory, OrdersLine.class);
	}

	public List List() {

		String hql = "from OrdersLine";

		return this.contrDAO.findByHQL(hql);

	}
	public List ListBytype(){
		
		String hql = " from CstCustomer";
		
		return this.contrDAO.findByHQL(hql);
		
	}
}
